package com.mopa.http;
public class CommonException extends Throwable
{

	private static final long serialVersionUID = 1L;
	private int      mErrorCode;
	private String   mErrorType;
	public CommonException(String message)
	{
		super(message);
		mErrorCode = 0;
	}
	public CommonException(String message, String type, int code)
	{
		super(message);
		mErrorCode = 0;
		mErrorType = type;
		mErrorCode = code;
	}
	
	public int getErrorCode()
	{
		return mErrorCode;
	}

	public String getErrorType()
	{
		return mErrorType;
	}
}
